import time

import uiautomator2 as u2
from adbutils import adb
# device_type="A1Front"
# device_type="A2Front"
device_type="A1Back"
app_version="1.0"
# app_version="3.0"
if device_type=="A1Front":
    device_1 = '322db21f'#EF1E-A1前排屏幕设备代码
if device_type=="A1Back":
    device_1 = "75ea11de" #EF1E-A1后排屏幕设备代码
if device_type=="A2Front":
    device_1 = "398a062" #EF1E-A2后排屏幕设备代码
d_one = u2.connect(device_1)
# d_one = u2.connect()
d_one_device = adb.device(serial=device_1)
# device_info = {"d_one": d_one, "d_two": d_two}
# adb_device = adb.device(serial=device_ip)
# adb_device.root()

if __name__ == '__main__':
    d_one(resourceId="com.android.systemui:id/button_single_icon").click()
    res=d_one(resourceId="com.android.systemui:id/button_single_icon").info
    print(res)

